package com.wolf.lottery.common.constants;

/**
 * @description: 消息发送状态（0未发送、1发送成功、2发送失败）
 * @author: wolf
 * @date: 2023/8/28
 */
public enum MQState {
    /**
     * 初始状态
     */
    INIT(0, "初始"),
    /**
     * 消息发送完成状态
     */
    COMPLETE(1, "完成"),
    /**
     * 消息发送失败状态
     */
    FAIL(2, "失败");

    private Integer code;
    private String info;

    MQState(Integer code, String info) {
        this.code = code;
        this.info = info;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
}
